package cn.edu.bjtu.toychange.service.impl;

import java.util.ArrayList;

import cn.edu.bjtu.toychange.dao.RequisitionDao;
import cn.edu.bjtu.toychange.entity.Requisition;
import cn.edu.bjtu.toychange.service.RequisitionListService;

public class RequisitionListServiceImpl implements RequisitionListService{
	private RequisitionDao requisitionDao;
	
	public RequisitionListServiceImpl() {
		requisitionDao = new RequisitionDao();
	}
	
	@Override
	public ArrayList<Requisition> getUserSendRequisitions(int userID) {
		// TODO Auto-generated method stub
		
		return requisitionDao.getUserSendRequisitions(userID);
	}

	@Override
	public ArrayList<Requisition> getUserReceiveRequisitions(int userID) {
		// TODO Auto-generated method stub
		
		return requisitionDao.getUserReceiveRequisitions(userID);
	}

}
